package com.example.shapetext;

public class Circular extends Shape1{
    double r;

    public Circular(double r) {
        this.r = r;
    }

    @Override
    public void getArea() {
        double s = r*3.14;
        System.out.println("三角形面积是"+s);
    }

    @Override
    public void getParameter() {
        double c = 2*3.14*r;
        System.out.println("三角形周长是"+c);
    }
}
